#!/bin/bash
echo '请输入你的邮箱'
read Email
echo "输入用户名[没有特殊要求，随意输入字母即可]" 
read user
ssh-keygen -t rsa -C "${Email}"
'Enter file in which to save the key (/home/mobaxterm/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:'
echo 请将下面的内容复制下来&&cat ~/.ssh/id_rsa.pub
git remote rm origin
read -p "请输入GIT开头的项目地址" git
if [ -z "${git}" ];then
	echo '未输入,程序终止'
else
	git remote add origin $git
	git branch --set-upstream-to=origin/master master
	git config --global user.email "$Email"
	git config --global user.name "$user"
	git pull
fi
